package com.groupbuying.cheetah.service.impl;

import com.groupbuying.cheetah.dao.CheetahTmpOrderSettleDao;
import com.groupbuying.cheetah.domain.CheetahTmpOrderSettleDO;
import com.groupbuying.cheetah.service.CheetahTmpOrderSettleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.*;


@Service
public class CheetahTmpOrderSettleServiceImpl implements CheetahTmpOrderSettleService {
	@Autowired
	private CheetahTmpOrderSettleDao cheetahTmpOrderSettleDao;
	
	@Override
	public CheetahTmpOrderSettleDO get(String orderType){
		return cheetahTmpOrderSettleDao.get(orderType);
	}
	
	@Override
	public List<CheetahTmpOrderSettleDO> list(Map<String, Object> map){
		return cheetahTmpOrderSettleDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return cheetahTmpOrderSettleDao.count(map);
	}
	
	@Override
	public int save(CheetahTmpOrderSettleDO tmpOrderSettle){
		return cheetahTmpOrderSettleDao.save(tmpOrderSettle);
	}
	
	@Override
	public int update(CheetahTmpOrderSettleDO tmpOrderSettle){
		return cheetahTmpOrderSettleDao.update(tmpOrderSettle);
	}
	
	@Override
	public int remove(String orderType){
		return cheetahTmpOrderSettleDao.remove(orderType);
	}
	
	@Override
	public int batchRemove(String[] orderTypes){
		return cheetahTmpOrderSettleDao.batchRemove(orderTypes);
	}

	@Override
	public List<CheetahTmpOrderSettleDO> getCheetahTmpOrderSettleList(String orderId) {
		return cheetahTmpOrderSettleDao.getCheetahTmpOrderSettleList(orderId);
	}

	@Override
	public int saveList(List<CheetahTmpOrderSettleDO> cheetahTmpOrderSettleDOList) {
		return cheetahTmpOrderSettleDao.saveList(cheetahTmpOrderSettleDOList);
	}

	@Override
	public List<CheetahTmpOrderSettleDO> getCheetahTmpGYOrderSettleList(String orderId) {
		return cheetahTmpOrderSettleDao.getCheetahTmpGYOrderSettleList(orderId);
	}
}
